﻿using BaseData.CommonLib.Models;
using Swimj.CommonLib.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseData.RazorLib.Services
{
    public interface IMaterialService
    {
        Task<PaginatedResult<MaterialInfoResponseDto>?> QueryMaterialsByPage(MaterialSearchRequestDto model);
        
        Task<Result<MaterialInfoResponseDto>?> CreateMaterial(MaterialEditRequestDto editRequestDto);
        
        Task<Result<MaterialInfoResponseDto>?> GetMaterial(int? key);

        Task<Result<MaterialInfoResponseDto>?> UpdateMaterial(int id, MaterialEditRequestDto editRequestDto);
    }
}
